package com.atguigu.tingshu.account.rpc;

import com.atguigu.tingshu.account.client.UserAccountFeignClient;
import com.atguigu.tingshu.account.service.UserAccountService;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <a href="https://www.shallowrecall.top/">Recall`Blog</a></br>
 * <a href="https://github.com/ShallowRecall">GitHub</a>
 *
 * @author Recall
 * @createTime 2025/06/09 18:59
 **/
@RestController
@RequestMapping("/api/inner/accountInfo")
public class UserAccountRpcController {

    @Autowired
    private UserAccountService userAccountService;

    @PostMapping("/checkAmountAndLockAmount")
    Result<AccountLockResultVo> checkAmountAndLockAmount(@RequestBody AccountLockVo accountLockVo){
        return userAccountService.checkAmountAndLockAmount(accountLockVo);
    }

}
